package hd.cls2;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class BufTest {
    public static void main(String[] args) {
        try {
            //byte，
            //char
            /**BufferedWriter bw=new BufferedWriter(new FileWriter("d:/2.txt"));
            for(int i=1;i<=20;i++){
                bw.write("气度决定成就");
                bw.newLine();//换行
            }
            bw.close();**/
            BufferedReader br=new BufferedReader(new FileReader("d:/2.txt"));
            String str=null;
            while ((str=br.readLine())!=null){
                System.out.println(str);
            }
            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
